package com.jushu.storbox.constant;

/**
 * Exception config info class
 * 
 */
public class ExceptionConstant {
	
	/** 400  */
	public final static int Request_Code = 400;
	/** request error 400 */
	public final static String BadRequest = "BadRequest";
	
	/** param error 400 */
	public final static String invalid_paramter = "invalid_paramter";

	/** invalid range 400 */
	public final static String invalid_range = "invalid_range";
	
	/** Authorized_Code */
	public final static int Authorized_Code = 401;
	
	/** auth failed 401 */
	public final static String unauthorized = "unauthorized";

	/** terminal device disabled 401 */
	public final static String clientunauthorized = "clientunauthorized";
	
	
	/**403 Forbidden_Code */
	public final static int Forbidden_Code = 403;
	
	/** forbidden 403 */
	public final static String forbidden = "forbidden";

	/** user locked 403 */
	public final static String UserLocked = "UserLocked";

	/** 404  not exist */
	public final static int Resource_Code = 404;
	
	/** resource not exist 404 */
	public final static String NoFound = "NoSuchItem";

	/** user not exist 404 */
	public final static String no_such_user = "no_such_user";

	/** folder not exist 404 */
	public final static String NoSuchFolder = "NoSuchFolder";

	/** version not exist 404 */
	public final static String no_such_version = "no_such_version";

	/** link not exist 404 */
	public final static String NoSuchLink = "NoSuchLink";

	/** link not exist 404 */
	public final static String NoSuchFile = "NoSuchFile";
	
	/** 404 */
	public final static String LinkNotEffective = "LinkNotEffective";

	/**  404 */
	public final static String LinkExpired = "LinkExpired";
	
	/** 405 */
	public final static int Method_Code = 405;
	
	/** 405 */
	public final static String MethodNotAllowed = "MethodNotAllowed";
	
	/** Method_Code */
	public final static int conflict_Code = 409;
	
	/** exist file that name is same 409 */
	public final static String conflict = "conflict";
	
	/** 412 */
	public final static int requests_Code = 412;
	
	/**  412 */
	public final static String too_many_requests = "too_many_requests";

	/**  412 */
	public final static String precondition_failed = "precondition_failed";
	
	/** 417  */
	public final static int transaction_Code = 417;
	
	/** transaction submit failed 417 */
	public final static String transactionCommitError = "transactionCommitError";

	/** transaction rollback failed 417 */
	public final static String transactionRollbackError = "transactionRollbackError";

	/** InternalServerError_Code  */
	public final static int InternalServerError_Code = 500;
	
	/** 500 */
	public final static String InternalServerError = "InternalServerError";
	
	/** insufficient_storage_Code  */
	public final static int insufficient_storage_Code = 507;
	
	/** server error 507 */
	public final static String insufficient_storage = "insufficient_storage";
	
	/** 503 Service Unavailable	 */
	public final static int Service_Unavailable = 503;
	
	/** 901	web server access fail */
	public final static int access_Server_Failed = 901;
	
	/** -404 Network unavailable */
	public final static int access_internet_Failed = -404;

}
